/*
 * @Author: qin
 * @Date:   2018-08-28
 * +----------------------------------------------------------------------
 * | admin [ 后台管理系统公共配置信息 ]
 * | 项目相关接口模块
 * +----------------------------------------------------------------------
 */
layui.define(['jquery', 'configure', 'configureCom'], function (exports) {
    var configure = layui.configure;
    var configureCom = layui.configureCom;
    var $ = layui.jquery;

    $.each($('.replaceStr'), function (i, v) {
        if ($(this).html()) {//替换html
            var str = $(this).html();
            var _str = str.replace(/dtOnly/g, configure.dtOnly).replace(/xmOnly/g, configure.xmOnly).replace(/bdOnly/g, configure.bdOnly);
            $(this).html(_str);
        }
    });
    
    exports('replaceStr', {});
});